package com.ruoyi.supermarket.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品属性对象 product_attribute
 * 
 * @author 李其伟
 * @date 2023-08-11
 */
public class ProductAttribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商品货号 */
    @Excel(name = "商品货号")
    private String sku;

    /** 商品标题 */
    @Excel(name = "商品标题")
    private String title;

    /** 可选值列表，以逗号隔开 */
    @Excel(name = "可选值列表，以逗号隔开")
    private String inputList;

    /** 显示类型 */
    @Excel(name = "显示类型")
    private Integer type;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSku(String sku)
    {
        this.sku = sku;
    }

    public String getSku()
    {
        return sku;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setInputList(String inputList) 
    {
        this.inputList = inputList;
    }

    public String getInputList() 
    {
        return inputList;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sku", getSku())
            .append("title", getTitle())
            .append("inputList", getInputList())
            .append("type", getType())
            .append("sort", getSort())
            .toString();
    }
}
